{if $item['status'] == 1}
    <!--未付款-->
    {ifp 'sorder.order.pay'}
        <a class="btn btn-primary btn-xs" data-toggle="ajaxPost" href="{php echo webUrl('sorder/order_op/pay', array('id' => $item['id']))}" data-confirm="确认此订单已付款吗？">确认付款</a>
    {/if}
{elseif $item['status'] == 2}
    <!--未付款-->
    {ifp 'sorder.order.pay'}
    <a class="btn btn-primary btn-xs" data-toggle="ajaxPost" href="{php echo webUrl('sorder/orderfinish', array('id' => $item['id']), true)}" data-confirm="确认此订单已完成吗？">订单完成</a>
    {/if}

{elseif $item['status'] == 5}
    {if  $_W['routes'] == 'sorder.order.refund' || $_W['routes'] == 'sorder.order.detail'}
        {ifp 'sorder.order.refundpass'}
            <a class="btn btn-success btn-xs" data-toggle="ajaxPost"  href="{php echo webUrl('sorder/order_op/refundpass', array('id' => $item['id']))}" data-confirm="确认通过此维权申请吗？">通过申请</a>
        {/if}
        {ifp 'sorder.order.refundturn'}
            <br><br><a class="btn-xs" data-toggle='ajaxModal'  href="{php echo webUrl('sorder/order_op/refundturn', array('id' => $item['id']))}" >驳回申请</a>
        {/if}
    {/if}

{/if}
